package thread;

public class CurrentThreadDemo {
    public static void main(String[] args) {
       /*
       Thread有一个静态方法
       Thread currentThread
        */
        Thread main = Thread.currentThread();

        System.out.println("主线程"+main); dosome();
    }
    public static void dosome(){
        Thread t=Thread.currentThread();
        System.out.println("9"+t);
    }
}
